package cn.wolfcode.mapper;

import cn.wolfcode.domain.MenuCatalogue;
import cn.wolfcode.qo.MenuCatalogueObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MenuCatalogueMapper {
    int deleteByPrimaryKey(Long id);

    int insert(MenuCatalogue record);

    MenuCatalogue selectByPrimaryKey(Long id);

    List<MenuCatalogue> selectAll();

    int updateByPrimaryKey(MenuCatalogue record);

    List<MenuCatalogue> selectForList(MenuCatalogueObject qo);

    void updateStatus(@Param("id") Long id, @Param("status") int status);
}